package com.zyl.pts.mapper;

import com.zyl.pts.domain.bean.Log;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @version v1.0
 * @ProjectName: product_source
 * @Package: com.zyl.pts.mapper
 * @ClassName: LogMapper
 * @Description TODO()
 * @Author 翟玉龙
 * @Date 2024/11/19-13:53
 */
@Mapper
public interface LogMapper {

    /**
     * 查询所有日志信息
     * @param originalIp 原始ip
     * @return {@link List }<{@link Log }>
     */
    List<Log> queryByConditional(String originalIp);

    /**
     * 新增日志
     * @param log 日志
     * @return int
     */
    int insertLog(Log log);
}
